import { ElMessage } from "element-plus";

export function info(msg: string) {
  ElMessage({ type: "info", message: msg, dangerouslyUseHTMLString: true });
}
export function success(msg: string) {
  ElMessage({ type: "success", message: msg, dangerouslyUseHTMLString: true });
}
export function warning(msg: string) {
  ElMessage({ type: "warning", message: msg, dangerouslyUseHTMLString: true, });
}
export function error(msg: string) {
  ElMessage({ type: "error", message: msg, duration: 2000, dangerouslyUseHTMLString: true });
}
export default {
  info,
  success,
  warning,
  error,

}